$.ajax({
    url:"userseat/user",
    type:"get",
    dataType:"json",
    success: function (data) {
        console.log(data);
        let h = "";
        for (let i = 0;i<data.length;i++) {
            h+="<tr>\n" +
                "    <td>"+data[i].uid+"</td>\n" +
                "    <td>"+data[i].name+"</td>\n" +
                "    <td>"+data[i].sid+"</td>\n" +
                "  </tr>"
        }
        $("tbody").html(h);
        $("#sum").html("共:"+data.length);
    }
})